<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <link rel="shortcut icon" href="/favicon.ico" />
    <meta name="keywords" content="码乐" />
    <meta name="description" content="码乐" />
    <title>幸运大抽奖</title>
    <link rel="stylesheet" href="/os/Public/home/css/btp.css">
    <link rel="stylesheet" href="/os/Public/home/css/common.css">
    <script type="text/javascript" charset="utf-8" src="/os/Public/home/js/jquery.js"></script>
    <script type="text/javascript" charset="utf-8" src="/os/Public/home/js/common.js"></script>
</head>
<body style="background:#252331;">
    <div class="container recharge">
        <div class="maxWidth400">
            <div class="hongbaoT">促销易红包大派送</div>
            <div class="hongbao1 hongbao2">
                <div class="gx">
                    <div class="big">1元</div>
                    恭喜您获得红包
                    <button class="btn btn_primary" id="onMenuShareTimeline">分享红包</button>
                </div>
            </div>

            <div class='fx_div'>
                <p class="fx_head">促销易幸运大抽奖</p>
                <p class='fx_cont'>关注促销易微信公众号，话费、现金红包等你来拿</p>
                <p class='fx_a'><a class='fx_close' href='javascript:void(0);'>取消</a><a href='<?php echo U('home/user/hongbao');?>'>发送</a></p>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script>
      wx.config({
        debug: true,
        appId: '<?php echo ($signPackage["appId"]); ?>',
        timestamp: <?php echo ($signPackage["timestamp"]); ?>,
        nonceStr: '<?php echo ($signPackage["nonceStr"]); ?>',
        signature: '<?php echo ($signPackage["signature"]); ?>',
        jsApiList: [
            'checkJsApi',
            'onMenuShareTimeline',
            'onMenuShareAppMessage'
        ]

      });
      wx.ready(function(){
     wx.onMenuShareAppMessage({
    title: 'youhuer', // 分享标题
    desc: 'youhuer web', // 分享描述
    link: 'www.youhuer.com/index.php?s=/mob/test/demo', // 分享链接
    imgUrl: 'http://www.youhuer.com/Public/images/default_avatar_32_32.jpg', // 分享图标
    type: '', // 分享类型,music、video或link，不填默认为link
    dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
    success: function () {
        // 用户确认分享后执行的回调函数
        alert('ok!');
    },
    cancel: function () {
        // 用户取消分享后执行的回调函数
        alert('cacel!');
    }
});




});



      });
    </script>
</body>
</html>